Ext.define("ECAT.view.HomePage", {
    extend: 'Ext.Img',
    config: {
    	id : 'homePage',
    	mode:true,
		width: 768,
		height: 1024
    },
    beforeInitialize: function() {
		this.callParent(arguments);
        this.element.on({
            swipe: 'onSwipe',
            scope: this
        });
    },
    onSwipe : function(e){
    	if(e.direction == 'left'){
    		 Ext.Viewport.animateActiveItem(
			        Ext.getCmp('list_img_all'),  
					{  
					    type: 'slide',  
					    direction: 'left',
					    duration : 900
					}
			    );
			 // 显示菜单
			 Ext.getCmp('btn_menu').show();   
    	}
    }
    
});